package com.ninthgroup.controller;


import com.ninthgroup.service.KindService;
import com.ninthgroup.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author ：Student王心
 * @date ：Created in 2022/10/14 20:07
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/kind")
public class KindController {
    @Autowired
    private KindService kindService;

    @RequestMapping("/list")
    @ResponseBody
    public Result list(){
        return kindService.findAllKind();
    }





}